#!/usr/bin/env python
#coding:utf-8
from handler.index import IndexHandler
from handler.drug import DrugSearchHandler
from handler.access import AccessHandler
from handler.drug import CategoryListHandler
from handler.drug import CategoryHandler
from handler.drug import DrugDetailHandler
from handler.search import SearchHandler

url=[
    (r'/', IndexHandler),
    (r'/search/drug.(\d+)',DrugSearchHandler),
    (r'/access/get_token',AccessHandler),
    (r'/category',CategoryListHandler),
    (r'/category/(\d+)/(\d+)',CategoryHandler),#第一个参数为分类类型 第二个为分页数
    (r'/drug/(.*)',DrugDetailHandler),
    (r'/search.*',SearchHandler),
    ]